package com.zyh.day02

object SetTest {
  def main(args: Array[String]): Unit = {
    //创建set
    var set = Set(1, 2, 3,3)
    println(set)
    //添加元素
    set += 4
    println(set)
    //删除元素
    set -= 3
    println(set)
    //遍历
    for(item <- set) println(s"item = ${item}")
  }
}
